	//将选择网省弹出层选中的网省赋值到输入框和隐藏域
	function setValueToInput(href) {
		var company_name = document.getElementById("company_name");
		var company_id = document.getElementById("company_id");
		company_name.value="  "+href.name;
		company_id.value=href.id;
		document.getElementById('company_js').style.display='none'; 
	}
	//对输入字符进行判断，如有特殊字符则弹出提示信息
	function checkSearch(input,frm){
		var target = document.getElementById(input);
		var targetName = target.value;
		if(trim(targetName)!=null &&trim(targetName)!="" &&trim(targetName)!="请输入关键字"){
			var result = checkSInput(trim(targetName));
			//判断
			if(!result){
				target.value="";
				target.focus();
				//调用方法.
				warnbox(event);
				return false;
			}else{
				frm.submit();
				return false;
			}
		}
		
	}
	//对输入字符进行判断，如有特殊字符则弹出提示信息
	function checkInput(input,frm){
		var inputObj = document.getElementById(input);
		var keyword = inputObj.value;
		if (trim(keyword) == "" || trim(keyword) == "请输入关键字" ||trim(keyword)==null) {
			inputObj.focus();
			return false;
		}else{
			var result =checkedInput(trim(keyword));
			if (result) {
				frm.submit();
				return true;
			} else {
				keyword="";
				inputObj.focus();
				//调用方法.
				warnbox(event);
				return false;
			}
		} 
	}
	//显示网省热线div
	function showCompanyTel() {
		document.getElementById('company_js_tel').style.display='block';
		var company_js = document.getElementById('company_js');
		if(company_js) {
			company_js.style.display='none';
		}
		
	}
	
	//提交表单
	function submitForm(url,frm) {
		var company_id = frm.company_id.value;
	    var company_name = frm.company_name.value;
		if(company_id == "" || trim(company_name) == "请选择网省") {
			company_id = "00";
		}
		frm.action = url+".jsp?company_id="+company_id;
		frm.method = "post";
		frm.submit();  
		return true;
	}
	//提交表单
	 function submitTheForm(frm) {
		    var company_id = frm.company_id.value;
		    var company_name = frm.company_name.value;
			if(company_id == "" || trim(company_name) == "请选择网省") {
				company_id = "00";
			}
			var url = "";	
		 	url = "/html/news/" +frm.site.value +"/" +frm.column_code.value +"_" + company_id + "/list_1.html";
			frm.action = url;
			frm.method = "post";
			frm.submit();  
			return false;
	 }
	 
	//附件无法下载提示
	function fileNotExist() {
		alert("对不起，您要的文件暂时无法下载。");
	}
	
	//相应回车事件  
	function testEnter() {
		if (event.keyCode == 13) {
			return checkInput();
		}
		return true;
	}
	
	//删除左右两端的空格 
	function trim(str) { 
		return str.replace(/(^\s*)|(\s*$)/g, "");
	}

	//显示文章详细页
	function showNewsDetail(columnCode, newsId){
		var url = "/html/news/" +columnCode +"/" +newsId +".html";
		window.open(url, '_blank');
	}

	//显示招标公告详细页
	function showProjectDetail(columnCode,logicNo){
		var url = "/html/project/"+columnCode + "/" +logicNo + ".html";
		window.open(url , '_blank');
	}

	//显示竞价公告详细页
	function showAnnounceDetail(announcementId) {
		var url = "/html/announcement/" +announcementId +".html";
		window.open(url, '_blank');
	}

	//文章栏目显示更多
	function showNewsList(site, columnCode, companyId) {
		var url = "/html/news/" +site +"/" +columnCode +"_" +companyId +"/list_1.html";
		window.location.href = url;
	}
	
	//循环物资竞价公告显示更多
	function showAnnounceList(site, columnCode, companyId) {
		var url = "/html/announcement/" +site +"/" +columnCode +"_" +companyId +"/list_1.html";
		window.location.href = url;
	}

	//资源下载显示更多
	function showResourceList(site, columnCode) {
		var url = "/html/resource/" +site +"/" +columnCode +"/list_1.html";
		window.location.href = url;
	}
	
	//公告频道显示更多
	function showTopicList(info_type, column_name) {
		var url = "/html/topic/" +info_type +"/" +column_name +"/list_1.html";
		window.location.href = url;
	}
	
	//业务流程及常见问题显示更多
	function showHelpList(column_name,news_id) {
		var url = "/html/help/" +column_name +"/"+news_id+".html";
		window.location.href = url;
	}
	
	//显示更多
	function showMore(url) {
		window.location.href = url;
	}
	function popupDiv() { 
		if($.cookie("never_display_annoucement") == "1")
			{
			$("#pop_box").hide();
			return false;  
			}
		var width = "680px";
		var height = "420px";
	    var div_obj = $("#pop_box");        
	    var windowHeight = document.body.clientHeight;  
	    var popupHeight = div_obj.height();       
	    var popupWidth = div_obj.width();    
	    //添加并显示遮罩层   
	    $("<div id='mask'></div>").addClass("mask").width("100%").height(windowHeight)
	                              .appendTo("body")   
	                              .fadeIn(200);   
	    $("select").css("visibility","hidden")

	    var divHeigth = 90;
	    div_obj.css({display:"block",left:("50%"),top:(divHeigth + "px"),width:width,height:height});
	}   
	  
	function hideDiv(div_id) {   
	   // $("#mask").remove();   
	   $("#" + div_id).animate({left: ("50%"), top: 0, opacity: "hide" }, "slow");
	   $("#mask").hide();
	   $("select").css("visibility","visible")
	   //$("#pop_box").hide();   
	}
	
	function displayFlow(idx){
		$flag=$("#m_flag_"+idx).val();
		if("false"==$flag){
			$("#m_img_"+idx).addClass("show_flow").removeClass("hide_flow");
			$("#m_div"+idx).show();
			$("#m_flag_"+idx).val("true");
		}else{
			$("#m_img_"+idx).addClass("hide_flow").removeClass("show_flow");
			$("#m_div"+idx).hide();
			$("#m_flag_"+idx).val("false");
		}
	}